import 'package:flutter/material.dart';

class FifthPage extends StatelessWidget {
  const FifthPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CustomScrollView(
        slivers: [
          SliverAppBar(
            expandedHeight: 233,
            stretch: true, //允许向下拉伸

            floating: true,
            // snap: true,
            flexibleSpace: FlexibleSpaceBar(

              // collapseMode: CollapseMode.parallax,

stretchModes: [
  StretchMode.blurBackground,
  StretchMode.zoomBackground,
],
              title: Text('这是flexibleSpace的title'),
              background: FlutterLogo(),),
            /*title: Text('这是一个SLiver 的AppBar')*/

          ),

          SliverToBoxAdapter(
            child: Placeholder(),
          ),
          SliverList(delegate: SliverChildListDelegate([
            FlutterLogo(size: 299,),
            FlutterLogo(size: 299,),
            FlutterLogo(size: 299,),
            FlutterLogo(size: 299,),
            FlutterLogo(size: 299,),
          ]))



        ],
      ),
    );
  }
}
